@tailwind base;
@tailwind components;
@tailwind utilities;

@layer base {
  /* Improve touch behavior on mobile Safari: remove tap highlight and prefer manipulation for clicks */
  a, button, input, textarea {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }
}

@layer utilities {
  .text-gradient {
    @apply bg-gradient-to-r from-blue-600 to-purple-600 bg-clip-text text-transparent;
  }
  
  .card-hover {
    @apply transition-all duration-300 hover:shadow-lg hover:-translate-y-1;
  }
  
  .tool-card {
    @apply bg-white rounded-lg border border-gray-200 p-6 card-hover;
  }
  
  .primary-button {
    @apply bg-gradient-to-r from-blue-600 to-purple-600 text-white px-6 py-3 rounded-lg font-medium hover:shadow-lg transition-all duration-300;
  }
  
  .secondary-button {
    @apply bg-gray-100 text-gray-700 px-6 py-3 rounded-lg font-medium hover:bg-gray-200 transition-all duration-300;
  }
  
  .input-field {
    @apply w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent outline-none transition-all duration-300;
  }
  
  .textarea-field {
    @apply w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent outline-none transition-all duration-300 resize-none;
  }

  /* Reusable inline link style for footer and text links */
  .site-link {
    @apply text-gray-500 hover:text-blue-600 underline transition-colors;
  }
}